<!-- 设备缺陷调整  sbqxjhsjtz.jsp -->
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/jsp/common/common.jsp"%>
<html>
	<head>
		<script type="text/javascript" src="<%=contextPath%>/js/validator.js"></script> 
		<script type="text/javascript" src="<%=contextPath%>/ext3/adapter/ext/ext-base.js"></script>
		<script type="text/javascript" src="<%=contextPath%>/ext3/ext-all.js"></script>
		<script type="text/javascript" src="<%=contextPath%>/js/My97DatePicker/WdatePicker.js"></script>
		<link rel="stylesheet" type="text/css"	href="<%=contextPath%>/ext3/resources/css/ext-all.css">

		<script type="text/javascript" language="javascript">  
			
			Ext.onReady(function(){
				var tb = new Ext.Toolbar({
			   		renderTo: document.all.tbar,
			    	items: [				       
				        {
				            text: '调整消缺时间并生成新工作计划',
				            icon:"<%=contextPath%>/images/save.gif",
				            handler:toCheck,
				            hidden:<%=session.getAttribute("btn_save_display") != null || "1".equals(session.getAttribute("SESSION_ISADMIN")) ? false:true%>
				        },'-',
				        {
				            text: '关闭',
				            icon:"<%=contextPath%>/images/fanhui.png",
				            handler:function(){
				            	window.close();
				            }
				        }
			    	]
			    });
			});
			
			// 验证通过后提交
			function toCheck(){

			  	if(!Validator.Validate(frmM,2)){
				  return false;
			  	}
			  	
			  	comt();

		    }
		 </script>  
	</head>
	<body>
		<div id = "tbar"></div>
		<br>
		<!-- 信息提示 -->
		<div id="result" align="center"><font color="red">${info }</font></div>

		<form id="frmM" name="frmM" method="POST">
			<s:hidden name="entitytz.id" />			
			
			<table width="100%" id="infotab">
				<tr>
					
					<th width="120" nowrap>
					<font color="red">*</font>&nbsp;调整计划消缺开始时间：
					</th>
					<td >
					
						<input size=12 onclick="WdatePicker({el:$dp.$('entitytz.tzjhxcsj')})" datatype="Require" type="text" readonly="true" name="entitytz.tzjhxcsj" value='<fmt:formatDate value="${entitytz.tzjhxcsj}" pattern="yyyy-MM-dd HH:mm"/>' msg="调整计划消缺开始时间必须输入。"/>
						<img onclick="WdatePicker({el:$dp.$('entitytz.tzjhxcsj')})" src="<%=contextPath%>/js/My97DatePicker/skin/datePicker.gif" width="12" height="22" align="absmiddle">
				
					</td>
					<th width="120" nowrap>
						<font color="red">*</font>&nbsp;调整计划消缺结束时间：
					</th>
					<td >
					
						<input size=12 onclick="WdatePicker({el:$dp.$('entitytz.tzjhxcjssj')})" datatype="Require" type="text" readonly="true" name="entitytz.tzjhxcjssj" value='<fmt:formatDate value="${entitytz.tzjhxcjssj}" pattern="yyyy-MM-dd HH:mm"/>' msg="调整计划消缺结束时间必须输入。"/>
						<img onclick="WdatePicker({el:$dp.$('entitytz.tzjhxcjssj')})" src="<%=contextPath%>/js/My97DatePicker/skin/datePicker.gif" width="12" height="22" align="absmiddle">
					
					</td>
					
				</tr>
			</table>
		</form>
	</body>
</html>
<script language="javascript">

	 // 保存
     function comt(){
     	document.frmM.action = "<%=contextPath%>/sbqxjl!saveJhsjtz.do";
     	document.frmM.submit();
     }

</script>